<script setup lang='ts'>
const {title} = defineProps<{title:string}>()
</script>

<template>
    <van-cell :title>
        <!-- 使用 right-icon 插槽来自定义右侧图标 -->
        <template #right-icon>
            <slot>默认内容</slot>
        </template>
    </van-cell>
</template>

<style scoped>
.custom-title {
    margin-right: 4px;
    vertical-align: middle;
}

.search-icon {
    font-size: 16px;
    line-height: inherit;
}
</style>